<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>输出页面中高度宽度均大于50的节点</title>
  <style>
    div.line {
      overflow: hidden;
      margin-bottom: 10px;
    }

    div.line2 {
      /* overflow: hidden; */
    }

    div.line2>div {
      float: left;
      width: 60px;
      height: 70px;
      background-color: #ccc;
      margin-left: 10px;
    }

    div.line>div {
      float: left;
      width: 30px;
      height: 70px;
      background-color: #ccc;
      margin-left: 10px;
    }
  </style>
</head>

<body>
  <div class="line">
    <div class="aaa"></div>
    <div class="aaa"></div>
    <div class="aaa"></div>
    <div class="aaa"></div>
    <div class="aaa"></div>
    <div class="aaa"></div>
  </div>
  <div class="line2">
    <div class="bbb"></div>
    <div class="bbb"></div>
    <div class="bbb"></div>
    <div class="bbb"></div>
    <div class="bbb"></div>
    <div class="bbb"></div>
  </div>
  <script>
    // 获取元素集合  并转化为数组  确保可以使用数组方法
    let all = Array.from(document.querySelectorAll('*'))
    let nodes = all.filter((v) => {
      // offsetWidth offsetHeight  是指元素的实际宽高
      return (v.offsetWidth > 50 && v.offsetHeight> 50)
    })
    console.log(nodes);

  </script>
</body>

</html>